#!/bin/bash
time=`date "+%F %X"`
ip=`ipconfig | sed -n '/IPv4/p' | sed -n '/192./p' | awk -F ':' '{print $2}' | awk '{print $1}'`
jct get "http://139.159.218.3:9000/localip/?action=put&ip=${ip}&port=9001&id=98pc"
echo "${time} ip(${ip}) reported ${?}" >> logs.txt